import request from '@/utils/request'

//灯条测试开启
export function indlineledon(data) {
  return request({
    url: '/indlineledon',
    method: 'post',
    data
  })
}
//灯条测试关闭
export function indlineledoff(data) {
  return request({
    url: '/indlineledoff',
    method: 'post',
    data
  })
}


//状态灯测试开启
export function indworkinglight(data) {
  return request({
    url: '/indworkinglight',
    method: 'post',
    data
  })
}
//状态灯测试关闭
export function indworkingoff(data) {
  return request({
    url: '/indworkingoff',
    method: 'post',
    data
  })
}

//库位操作测试-亮灯
export function indledopen(data) {
  return request({
    url: '/indledopen',
    method: 'post',
    data
  })
}
//库位操作测试-灭灯
export function indledoff(data) {
  return request({
    url: '/indledoff',
    method: 'post',
    data
  })
}

//库位操作测试-灭灯
export function indresetled() {
  return request({
    url: '/indresetled',
    method: 'post'
  })
}

/**
 * @param {*} data
 * 库位操作测试-标定
 */

export function singleCalibrate(data) {
  return request({
    url: '/single_calibrate',
    method: 'post',
    data
  })
}

//自动标定
export function autoCalibrate(data) {
  return request({
    url: '/auto_calibrate',
    method: 'post',
    data
  })
}

//串口调试
export function writeserial(data) {
  return request({
    url: '/writeserial',
    method: 'post',
    data
  })
}

//点位列表
export function positionList() {
  return request({
    url: '/positionlist',
    method: 'get'
  })
}